import { request } from '../utils/request';
import type { LoginParams, LoginResponse, RegisterParams, RegisterResponse } from './type';

export const login = (data: LoginParams): Promise<LoginResponse> => request.post<LoginResponse>('/auth/login', data);
export const register = (data: RegisterParams): Promise<RegisterResponse> => request.post<RegisterResponse>('/auth/register', data);
